<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>DIY自选配置 - DIY装机大师 - 佳恒科技</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<meta content="MSHTML 6.00.2900.5921" name="GENERATOR" />
		<link href="<%=basePath%>/style/common.css" type="text/css"
			rel="stylesheet" />
		<link href="<%=basePath%>/style/zxpz.css" type="text/css"
			rel="stylesheet" />
		<style type="text/css">
.pjList_td td {
	BACKGROUND: url(<%=basePath%>/images/line_15.gif) #fff repeat-x 50%
		bottom
}

.Pagination {
	MARGIN-TOP: 0px;
	BACKGROUND: #fff;
	PADDING-TOP: 15px;
	PADDING-LEFT: 15px
}
</style>
		<script language="javascript" src="<%=basePath%>/script/diy.js"
			type="text/javascript"></script>
	</head>
	<body>
		<form id="form1" name="form1" action="" method="post">
			<div class="pzSearch">
				<table id="tblquery" cellspacing="0" cellpadding="0" width="100%"
					border="0">
					<tbody>
						<tr>
							<td>
								<img alt="${sort.name }"
									src="<%=basePath%>/images/${sort.icon }" />
							</td>
							<td width="44">
								关键字:
							</td>
							<td width="110">
								<input class="input1" id="Name""
									title="可按商品名、商品ID搜索" name="Name" />
							</td>
							<td>
								<input id="hncid" type="hidden" value="678" />
								<input class="button1" id="Button1" type="button" />
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</form>
		<div class="pjList_thead">
			<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tbody>
					<tr>
						<td class="first" width="110">
							配件图片
						</td>
						<td>
							配件名称
						</td>
						<td width="75">
							价格
						</td>
						<td width="52">
							选用
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<s:iterator id="p" value="productList">
			<div class="pjList_td">
				<table cellspacing="0" cellpadding="0" width="100%" border="0">
					<tbody>
						<tr>
							<td class="first" width="110">
								<a href="<%=basePath%>/product/?id=${p.id }"
									target="_blank"><img style="HEIGHT: 60px" alt=""
										src="<%=basePath%>/products/${p.image }" /> </a>
							</td>
							<td class="align_Left" id="pname${p.id }">
								<a class="link_1" href="<%=basePath%>/product/?id=${p.id }"
									target="_blank">${p.name }</a>
								<br />
							</td>
							<td class="price" id="prise${p.id }" width="75">
								￥${p.price }
							</td>
							<td width="52">
								<input class="button1"
									onclick="javascript:setops(${p.sort.id },${p.id })"
									type="button" />
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</s:iterator>
	</body>
</html>

